Tweak gem dependencies to improve platform support for *BSD and Solaris.

* ffi: pull in unreleased fixes from GitHub master on *BSD.

* tzinfo: require >=1.2.0 to gain support for *BSD and Solaris,
  eliminating the need for the tzinfo-data gem.

Akinori MUSHA 10 years ago
parent
commit
db847be31b
1 changed files with 14 additions and 6 deletions
  1. 14 6
      Gemfile

+ 14 - 6
Gemfile

@@ -14,14 +14,22 @@ gem 'protected_attributes', '~>1.0.8'
14 14
 gem 'rails' , '4.1.4'
15 15
 
16 16
 case RUBY_PLATFORM
17
-when /freebsd/
18
-  # Seems FreeBSD's zoneinfo is not exactly what tzinfo expects
19
-  gem 'tzinfo-data'
20
-else
21
-  # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
22
-  gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
17
+when /freebsd|netbsd|openbsd/
18
+  # ffi (required by typhoeus via ethon) merged fixes for bugs fatal
19
+  # on these platforms after 1.9.3; no following release as yet.
20
+  gem 'ffi', github: 'ffi/ffi', branch: 'master'
21
+
22
+  # tzinfo 1.2.0 has added support for reading zoneinfo on these
23
+  # platforms.
24
+  gem 'tzinfo', '>= 1.2.0'
25
+when /solaris/
26
+  # ditto
27
+  gem 'tzinfo', '>= 1.2.0'
23 28
 end
24 29
 
30
+# Windows does not have zoneinfo files, so bundle the tzinfo-data gem.
31
+gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
32
+
25 33
 gem 'mysql2', '~> 0.3.16'
26 34
 gem 'devise', '~> 3.2.4'
27 35
 gem 'kaminari', '~> 0.16.1'